
#import "SEGJobMessageModel.h"
@implementation SEGJobMessageModel
- (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
self = [super init];
if (self) {
[self setValuesForKeysWithDictionary:dictionary];
}
return self;
}
-(instancetype)init
{
self = [super init];
if (self) {
_orderNo = @"";
_childList = @[];
_professionId = @"";
_professionName = @"";
}
return self;
}
+ (instancetype)initWithDictionary:(NSDictionary*)dictionary
{
return [[self alloc] initWithDictionary:dictionary];
}
- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{}
- (void)setOrderNo:(NSString*)orderNo{
_orderNo = [[SEGUtils ValueToString:orderNo]copy];
}
-(void)setValue:(id)value forKey:(NSString *)key{
    if ([key isEqualToString:@"childList"]) {
        NSMutableArray *_arrM = [NSMutableArray array];
        for (NSDictionary *dict in value) {
            SEGJobNodeMessageModel *model = [SEGJobNodeMessageModel initWithDictionary:dict];
            [_arrM addObject:model];
        }
        _childList = _arrM.copy;
        return;
    }
    [super setValue:value forKey:key];
}

- (void)setProfessionId:(NSString*)professionId{
_professionId = [[SEGUtils ValueToString:professionId]copy];
}
- (void)setProfessionName:(NSString*)professionName{
_professionName = [[SEGUtils ValueToString:professionName]copy];
}
@end
